﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Pixysoft.Framework.Configurations
{
    public interface IConfigurationProperty
    {
        /// <summary>
        /// 获取对应属性的key
        /// </summary>
        string Key { get;}

        /// <summary>
        /// 直接读取指定的值
        /// </summary>
        string Value { get;set;}

        /// <summary>
        /// 值经过base64处理后的值
        /// </summary>
        string Base64Value { get;set;}

        /// <summary>
        /// 获取经过对称加密的值 des(base64())
        /// </summary>
        /// <param name="key"></param>
        /// <returns></returns>
        string GetDesValue(string key);

        /// <summary>
        /// 设置对成加密的值 base64(des())
        /// </summary>
        /// <param name="key"></param>
        /// <param name="value"></param>
        /// <returns></returns>
        void SetDesValue(string key, string value);
    }
}
